/// 响应主体内容
class CurrentMaxQuoteDto {
  /// 报价，单位美元
  final String? price;
  /// 美元兑换奈拉的汇率
  final String? rate;
  /// 平台折扣，小数
  final String? discount;

  CurrentMaxQuoteDto({
    this.price,
    this.rate,
    this.discount,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (price != null) data['price'] = price;
    if (rate != null) data['rate'] = rate;
    if (discount != null) data['discount'] = discount;
    return data;
  }

  factory CurrentMaxQuoteDto.fromJson(Map<String, dynamic> json) {
    return CurrentMaxQuoteDto(
      price: json['price'],
      rate: json['rate'],
      discount: json['discount'],
    );
  }
}